package com.project_doctor.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @TableName t_doctor
 */
@TableName(value ="t_doctor")
public class Doctor {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String avatar;

    private String name;

    private String contactPhone;

    private Long roleId;

    private Long teamId;

    private Long institutionId;


    private String status; // 用户状态：ONLINE, OFFLINE, AWAY, BUSY 等

    private Date updateTime; // 状态更新时间

    @TableField(exist = false)
    private Role role;
    @TableField(exist = false)
    private Team team;
}